import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:item_detail_demo/item_detail/manager/item_detail_data_manager.dart';
import 'package:provider/provider.dart';

class ItemDesc extends StatefulWidget {
  const ItemDesc({Key? key}) : super(key: key);

  @override
  State<ItemDesc> createState() => _ItemDescState();
}

class _ItemDescState extends State<ItemDesc> {
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: const EdgeInsets.only(bottom: 16),
      padding: const EdgeInsets.only(left: 16, right: 16),
      color: Colors.white,
      child: Text(
        Provider.of<ItemDetailDataManager>(context).itemDetailDO.desc,
        style: const TextStyle(fontSize: 16.0, color: Color(0xFF333333), height: 28.0 / 16.0),

      ),
    );
  }
}
